package com.xinxing.learning.security.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@Controller
public class TestController {

    @PostMapping("/hello")
    @ResponseBody
    public String test() {
        return "hello test";
    }

    @GetMapping("/index")
    public String index() {
        return "index";
    }
}
